package com.hyt.it.ogt.data.enums;

/**
 * 评卷模式枚举
 *
 * @author liying
 */
public enum MarkmodelEnums {

    MARK_MODEL_SUBJECT("0", "按科目评卷"),
    MARK_MODEL_BATCH("1", "按批次评卷"),
    MARK_MODEL_ROOM("2", "按考场评卷"),

    ;
    private String code;
    private String desc;

    MarkmodelEnums(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static MarkmodelEnums getMarkmodelEnumByCode(String code) {
        for (MarkmodelEnums markmodelEnums : MarkmodelEnums.values()) {
            if (markmodelEnums.getCode().equals(code)) {
                return markmodelEnums;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }


    public String getDesc() {
        return desc;
    }
}
